package baidu.day06;

// Created: 07/28

/**
 * public:
 * protect:
 * private:
 */
public class Student {
    private int studentId;
    private String name;
    private char studentGender;

    // non-arguments constructor
    public Student()
    {

    }
    // arguments constructor
    public Student(int studentId, String name, char studentGender)
    {
        this();
        this.studentId = studentGender;
        this.name = name;
        this.studentGender = studentGender;
    }

    /**
     * 获取
     * @return studentId
     */
    public int getStudentId() {
        return studentId;
    }

    /**
     * 设置
     * @param studentId
     */
    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return studentGender
     */
    public char getStudentGender() {
        return studentGender;
    }

    /**
     * 设置
     * @param studentGender
     */
    public void setStudentGender(char studentGender) {
        this.studentGender = studentGender;
    }

    public String toString() {
        return "Student{studentId = " + studentId + ", name = " + name + ", studentGender = " + studentGender + "}";
    }

    // study methods
    public void study()
    {
        System.out.println(this.getName() + " is studying ...");
    }

    // playGame methods
    public void playGame()
    {
        System.out.println(this.getName() + " is play game ...");
    }
}
